Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: loops clean up #326

Merged
merged 1 commit into from
Oct 1, 2023
Merged

chore: loops clean up #326

merged 1 commit into from
Oct 1, 2023

Conversation

DaniPopes
Copy link
Contributor

Motivation

  • Use normal range loop where it makes sense.
  • Use same impl as Ord for [T] for algorithms::cmp

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

Comment on lines -60 to -61
cpy.limbs.iter_mut().for_each(|limb| limb.reverse_bits());
slice::from_raw_parts(cpy.limbs.as_ptr().cast(), Self::BYTES).to_vec()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't compile, also can't make the function const.

@codecov
Copy link

codecov bot commented Oct 1, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (a3057c5) 80.52% compared to head (a5804db) 80.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #326      +/-   ##
==========================================
- Coverage   80.52%   80.47%   -0.06%     
==========================================
  Files          54       54              
  Lines        6034     6039       +5     
==========================================
+ Hits         4859     4860       +1     
- Misses       1175     1179       +4     
Files Coverage Δ
src/algorithms/div/knuth.rs 99.49% <ø> (-0.51%) ⬇️
src/algorithms/div/small.rs 88.13% <ø> (+1.35%) ⬆️
src/bits.rs 78.06% <100.00%> (+0.23%) ⬆️
src/bytes.rs 96.87% <100.00%> (+0.03%) ⬆️
src/utils.rs 100.00% <ø> (ø)
src/algorithms/mod.rs 97.43% <93.33%> (-2.57%) ⬇️
src/algorithms/add.rs 50.00% <33.33%> (-50.00%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@prestwich prestwich merged commit 641cd1d into recmo:main Oct 1, 2023
19 of 20 checks passed
@DaniPopes DaniPopes deleted the simpler-loops branch October 1, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants